let names = "Bullet0_0";
console.log(names.indexOf("_"))
names = names.slice(0, names.indexOf("_") + 1);
console.log("name ===", names);